<?php

/**
 * This file is part of the Framework03 PHP framework.
 * @author Walter Tamboer
 * @package Framework03
 */

abstract class FW_Database_Adapter_Rowset implements SeekableIterator, Countable
{
    /**
     * @var FW_Database_Adapter_Abstract The adapter that belongs to this rowset.
     */
    private $adapter;

    /**
     * Initializes a new instance of this class.
     * @param FW_Database_Adapter_Abstract $adapter
     */
    public function __construct(FW_Database_Adapter_Abstract $adapter)
    {
        $this->adapter = $adapter;
    }
    
    /**
     * Gets the adapter that belongs to this rowset.
     * @return FW_Database_Adapter_Abstract
     */
    public function getAdapter()
    {
        return $this->adapter;
    }
}
